package com.aisile.teacher.service;

import com.aisile.model.teacher.dtos.TeacherAndStudentDto;
import com.aisile.model.teacher.dtos.TeacherListDto;
import com.aisile.model.teacher.pojos.Teacher;
import com.aisile.model.base.vos.R;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Auther:yry
 * @Date:2024/6/21 0021
 * @VERSON:1.0
 */
public interface TeacherService extends IService<Teacher> {

    /**
     * 级联添加老师和学生
     * @param dto
     * @return
     */
    public R saveTeacherAndStudents(TeacherAndStudentDto dto);
    public R udpateTeacherAndStudents(TeacherAndStudentDto dto);

    public R findList(TeacherListDto dto);

    /**
     *
     * @param id  老师id
     * @return
     */
    public R deleteTeacherAndStudent(Integer id);

    /**
     * 批量删除老师
     * @param ids
     * @return
     */
    public R deleteTeacherByIds(List<Integer> ids);

    public R findTeacherById(Integer id);

}
